/*
 * @Author: 颜礼田 2564217790@qq.com
 * @Date: 2024-09-10 10:57:39
 * @LastEditors: 颜礼田 2564217790@qq.com
 * @LastEditTime: 2024-09-10 11:58:35
 * @FilePath: /webServer/src/schema/department/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { BaseColumns } from '../base';
import { UserSchema } from '../user';
export interface DepartmentSchema extends BaseColumns {
  // 部门名称
  deptName: string;

  // 部门编码
  deptCode: string;

  // 父级部门
  parent?: DepartmentSchema;

  // 子级部门
  children?: DepartmentSchema[];

  // 部门员工
  user?: UserSchema[];
}
